<noscript>
	<div class="notification error png_bg">
		<div>
			Javascript is disabled or is not supported by your browser. Please <a href="http://browsehappy.com/" title="Upgrade to a better browser">upgrade</a> your browser or <a href="http://www.google.com/support/bin/answer.py?answer=23852" title="Enable Javascript in your browser">enable</a> Javascript to navigate the interface properly.
		</div>
	</div>
</noscript>
<ul class="shortcut-buttons-set">
	<li><a class="shortcut-button new-article" href="<?=base_url().'admincp/'.$module.'/update'?>"><span class="png_bg">
		Write an Article
	</span></a></li>
	<li><a class="shortcut-button new-page" href="#"><span class="png_bg">
		Create a New Page
	</span></a></li>
	<li><a class="shortcut-button upload-image" href="#"><span class="png_bg">
		Upload an Image
	</span></a></li>
	<li><a class="shortcut-button add-event" href="#"><span class="png_bg">
		Add an Event
	</span></a></li>
	<li><a class="shortcut-button manage-comments" href="#messages" rel="modal"><span class="png_bg">
		Open Modal
	</span></a></li>
</ul>
<div class="clear"></div> 
<div class="content-box">
	<div class="content-box-header">
		<h3>Content box</h3>
	</div> 
	<div class="content-box-content">
		<div class="tab-content default-tab" id=""> 
			<form action="<?=base_url().'admincp/'.$module.'/del_all'?>" method="POST" name="indexDel">
			<table>
				<thead>
					<tr>
					    <th class="w21"><input class="check-all" name="checkAll" type="checkbox" /></th>
						<th>Album name</th>
						<th>Image</th>
					    <th class="w50 center">Status</th>
					    <th class="w50 center">Action</th>
					    <th class="w70 center">Created</th>
					</tr>
				</thead>
				<tbody>
					<?php 
					if(!empty($result))
					{
						foreach($result AS $r)
						{
						?>
						<tr>
							<td><input type="checkbox" name="check[]" id="check[]" value="<?=$r->id?>"/></td>
							<td><?=$r->album_name?></td>
							<td><a href="<?=LINK_PHOTO.$r->link?>" class="fancyboxClick"><img src="<?=LINK_PHOTO_THUMB.$r->link?>" width="99"></a></td>
							<td class="center" id="updateStatus"><a href="javascript:void(0)" onclick="updateStatus(<?=$r->id?>,<?=$r->status?>,'<?=$module?>')"><img alt="Checked item" src="<?=base_url().'static/images/icons/'?><?php ($r->status==0) ? print 'uncheck_16x16.png' : print 'check_16x16.png' ?>" /></a></td>
							<td class="center">
								<a href="<?=base_url().'admincp/'.$module.'/update/'.$r->id?>" title="Edit"><img src="<?=base_url()?>static/images/icons/pencil.png" alt="Edit" /></a>
								<a href="<?=base_url().'admincp/'.$module.'/delete/'.$r->id?>" title="Delete"><img src="<?=base_url()?>static/images/icons/cross.png" alt="Delete" /></a> 
							</td>
							<td class="center"><?=date('Y-m-d',strtotime($r->created))?></td>
						</tr>
					<?php 
						}
					}else{ ?>
					<tr>
						<td cols="7" class="center">No-Data</td>
					</tr>
					<?php }	?>
				</tbody>
				<tfoot>
					<tr>
						<td colspan="6">
							<div class="bulk-actions align-left">
								<input type="submit" class="button" value="Delete" />
							</div>
							<div class="pagination">
								<?=$this->pagination->create_links()?>
							</div> 
							<div class="clear"></div>
						</td>
					</tr>
				</tfoot>
				
			</table>
			</form>
		</div>
	</div> 
</div> 
<div id="footer">
	<small>
			&#169; Copyright 2009 Simpla Admin | Powered by <a href="http://themeforest.net/item/simpla-admin-flexible-user-friendly-admin-skin/46073">Simpla Admin</a> | <a href="#">Top</a>
	</small>
</div>